<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
	<head>
		<title>查询结果</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
		<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
		<script type="text/javascript" src="${ctx}/script/order.js"></script>
		<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
		<style>
<!--
body {
	margin: 0px;
	padding: 0px;
	font-family: "宋体", Basemic, "Arial Narrow";
	font-size: 12px;
}
-->
</style>

	</head>
	<body>
		<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
		<form action="${ctx}/addBillManage.do?method=normalSelect"
			method="post" id="form1">
			<input type="hidden" name="orderindex.paystatus"
				value="${para.paystatus}" />
			<input type="hidden" name="orderindex.status" value="${para.status}" />
			<input type="hidden" name="orderindex.id" value="${para.id}" />
			<input type="hidden" name="orderindex.deliverstatus"
				value="${para.deliverstatus}" />
			<input type="hidden" name="wuliu" value="${wuliu}" />
			<input type="hidden" name="caiwu" value="${caiwu}" />
			<input type="hidden" name="dianzi" value="${dianzi}" />
			<div style="width: 100%; height: 30px;">
				<logic:equal value="4" name="para" property="status"></logic:equal>
				<logic:notEqual value="4" name="para" property="status">
					<input id="chkSelectAll" type="checkbox" name="chkSelectAll"
						onclick="che(this)" />
					<label for="chkSelectAll">
						全选
					</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</logic:notEqual>
				<logic:equal value="4" name="para" property="status"></logic:equal>
				<logic:notEqual value="4" name="para" property="status">
					<input type="button" name="btnAbandon" class="btn" value="批量取消"
						id="bu"
						onclick="javaScript:tiaosubmit('${ctx}/addBillManage.do?method=cancelAll')"
						disabled="disabled" />
				</logic:notEqual>
			</div>
			<table width="100%">
				<tr>
					<th nowrap class="td_01">
						<font size="2">选择</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">订单号</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">支付方式</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">配送方式</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">支配方式</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">订货人</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">城市</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">下单日期</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">货款金额</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">支付确认时间</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">发货时间</font>
					</th>
					<th nowrap class="td_01">
						<font size="2">订单状态</font>
					</th>
				</tr>
				<logic:present name="DemoRange">
					<logic:iterate id="waitlist" name="DemoRange" property="records">
						<tr align="center">
							<td nowrap class="td_03">
								<input type="checkbox" name="checkbox" value="${waitlist.id}"
									onclick="checkdd(this)" />
							</td>
							<td nowrap class="td_03">
							<font color="red">
								<a
									href="javascript:forward('${waitlist.id}','${waitlist.billstatus}','billdetial')"
									target="mainFrame">${waitlist.id}</a>
							</font>
							</td>
								<td nowrap class="td_03">
								<font size="2">${waitlist.pname}</font>
							</td>
						<td nowrap class="td_03">
								<font size="2">${waitlist.dname}</font>
							</td>
							<td nowrap class="td_03">
								<font size="2"> <logic:equal value="2" name="waitlist"
										property="payanddeliver">先货后款</logic:equal> <logic:equal
										value="1" name="waitlist" property="payanddeliver">先款后货</logic:equal>
									<logic:equal value="3" name="waitlist" property="payanddeliver">自提</logic:equal>
								</font>
							</td>
							<td nowrap class="td_03">
								<font size="2">${waitlist.customername}</font>
							</td>
							<td nowrap class="td_03">
								<font size="2">${waitlist.city}</font>
							</td>
							<td nowrap class="td_03">
								<font size="2"><fmt:parseDate var="date12" type="date"
										value="${waitlist.adddate}" pattern="yyyy-MM-dd" /> <fmt:formatDate
										value="${date12}" type="date" /> </font>
							</td>
							<td nowrap class="td_03">
								<font size="2">${waitlist.orderprice}</font>
							</td>
							<td nowrap class="td_03">
								<font size="2"><fmt:parseDate var="date12" type="date"
										value="${waitlist.payconfirmtime}" pattern="yyyy-MM-dd" /> <fmt:formatDate
										value="${date12}" type="date" /> </font>
							</td>
							<td nowrap class="td_03">
								<font size="2"><fmt:parseDate var="date12" type="date"
										value="${waitlist.sendtime}" pattern="yyyy-MM-dd" /> <fmt:formatDate
										value="${date12}" type="date" /> </font>
							</td>
							<td nowrap class="td_03">
								<font size="2">
								${waitlist.billstatus}
								</font>
							</td>
						</tr>
					</logic:iterate>
				</logic:present>
				<tr>
					<td colspan="17" align="right">
						<font size="2"><%@ include file="/pages/safeai/jsp/common/page.jsp"%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>